#ifndef ADDTIME_H
#define ADDTIME_H

#include <QSettings>
#include <QDialog>
#include <QTime>
namespace Ui {
class AddTime;
}

class AddTime : public QDialog
{
    Q_OBJECT

public:
    explicit AddTime(QSettings *settings,QWidget *parent = nullptr);
    ~AddTime();

    QTime start() const;

    QTime end() const;

private:
    Ui::AddTime *ui;
    QTime mStart;
    QTime mEnd;
    QSettings* mSettings;
    bool canAddTime(QTime start,QTime end);

public slots:
    void onBtnClicked();
};

#endif // ADDTIME_H
